package com.example.administrator.myapplication.dagger;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

import com.example.administrator.myapplication.R;

import javax.inject.Inject;

/**
 * @author Administrator
 */
public class DaggerActivity extends AppCompatActivity {
    @Inject
    Product mProduct;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_dagger);
        DaggerDaggerActivityComponent.create().inject(this);
        Toast.makeText(this,""+mProduct.hashCode(),Toast.LENGTH_LONG).show();
    }
}
